using Gateway.IApplication.Project.Input;
using Gateway.Infrastructure.AutoDI;

namespace Gateway.IApplication.Project;

/// <summary>
/// 项目服务
/// </summary>
public interface IProjectApp : IDependency
{
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<bool> Add(CreateProjectInput input);

    /// <summary>
    /// 更新
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<bool> Update(UpdateProjectInput input);

    /// <summary>
    /// 禁用/启用
    /// </summary>
    /// <param name="id"></param>
    /// <param name="disable"></param>
    /// <returns></returns>
    Task<bool> Disable(string id, string disable);

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<bool> Remove(string id);
}